package com.youth.platform.controller;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.youth.framework.authority.entity.Resources;
import com.youth.platform.service.ResourceService;

@Controller
@Scope("prototype")
@RequestMapping("/resourcesController")
public class ResourcesController {

	@Resource(name = "resourceService")
	private ResourceService resourceService;

	@RequestMapping(value = "/addResource.html")
	public String addResource(HttpServletRequest req) {
		return null;

	}

	@RequestMapping(value = "/selectResource.html")
	public Resources selectResourceById(HttpServletRequest req) {

		Resources r = new Resources();
		String resourceid = "1303909847687";
		r.setResourceId(resourceid);
		r = resourceService.selectResourcesById(r);
		return r;

	}
}
